﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Collections.Generic;
using Ccit.OA.MsNotify;
namespace Ccit.OA.Notify
{
    public interface INotify
    {         
        /// <summary>
        /// 获取菜单树信息
        /// </summary>
        /// <param name="Query"></param>
        /// <returns></returns>
        string GetNotiFyNodes(string Query);
        /// <summary>
        /// 保存通知类型
        /// </summary>
        /// <param name="ms"></param>
        /// <returns></returns>
        List<string> DoSaveNotiFy(MsNotifyClass ms);
        /// <summary>
        /// 删除信息
        /// </summary>
        /// <param name="sId"></param>
        /// <returns></returns>
        List<string> DoOperateNotiFy(string sId);
        /// <summary>
        /// 获取类型信息
        /// </summary>
        /// <param name="sId"></param>
        /// <returns></returns>
        MsNotifyClass GetNotiFyMes(string sId);
        /// <summary>
        /// 获取通知发布列表信息
        /// </summary>
        /// <param name="Query"></param>
        /// <returns></returns>
        List<MsNotifyMessage> GetNotifyMessage(string Query);
        /// <summary>
        /// 删除通知信息和浏览信息
        /// </summary>
        /// <param name="NotifyId">主键ID</param>
        /// <param name="type">判断类型1:删除，0:修改</param>
        /// <param name="state">修改参数</param>
        /// <returns></returns>
        List<string> DoOperateNotify(string NotifyId,string type,string state);
        /// <summary>
        /// 添加通知类型
        /// </summary>
        /// <param name="ddlList"></param>
        void DoAddDownList(ref DropDownList ddlList);
        /// <summary>
        /// 保存NTF_A2(通知信息表)
        /// </summary>
        /// <param name="ms"></param>
        /// <returns></returns>
        List<string> DoSaveNotiFyMessage(MsNotifyMessage ms);
        /// <summary>
        /// 获取通知内容信息
        /// </summary>
        /// <param name="NotifyId"></param>
        /// <returns></returns>
        string GetNotyfyContent(string NotifyId);
        /// <summary>
        /// 获取通知类型编剧页面信息
        /// </summary>
        /// <param name="NotifyId"></param>
        /// <returns></returns>
        MsNotifyMessage GetNotiFyMessage(string NotifyId);
        /// <summary>
        ///  获取回复列表页面
        /// </summary>
        /// <param name="NotifyId"></param>
        /// <returns></returns>
        List<MsNotifyMessage> GetReplyViewMes(string NotifyId,string Query);
        /// <summary>
        /// 获取条件设置信息
        /// </summary>
        /// <param name="typeId"></param>
        /// <returns></returns>
        DataSet GetQueryMessage(string typeId);
        /// <summary>
        /// 删除条件信息
        /// </summary>
        /// <param name="queryId"></param>
        /// <returns></returns>
        string DoOperateQuery(string queryId);
        /// <summary>
        /// 保存条件信息
        /// </summary>
        /// <param name="ms"></param>
        /// <returns></returns>
        List<string> DoSaveQuery(MsQueryClass ms);
        /// <summary>
        /// 获取条件信息
        /// </summary>
        /// <param name="QueryId"></param>
        /// <returns></returns>
        MsQueryClass GetQueryEdit(string QueryId);
        /// <summary>
        /// 获取类型信息
        /// </summary>
        /// <param name="Query"></param>
        /// <returns></returns>
        DataSet GetDictLibMes();
         /// <summary>
        ///  获取通知浏览页面
        /// </summary>
        /// <param name="NotifyId"></param>
        /// <returns></returns>
        List<MsNotifyMessage> GetViewMes(string Query);
        /// <summary>
        /// 获取打印页面通知信息
        /// </summary>
        /// <param name="NotifyId"></param>
        /// <returns></returns>
        MsNotifyMessage GetReplyView(string NotifyId);
        /// <summary>
        /// 获取浏览信息内容
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="NotifyId"></param>
        /// <returns></returns>
        string GetUserMessage(string userId, string NotifyId);
        /// <summary>
        /// 操作浏览信息表
        /// </summary>
        /// <param name="ms"></param>
        /// <returns></returns>
        string DoOperateReplyView(MsViewClass ms);
    }
}
